<template >
	<view>
		
		<u-loadmore :status="status" :icon-type="iconType" :load-text="loadText"  />
	</view>
</template>

<script>
	export default {
		props:{
			 loading:{
				 type:Boolean,
				 default:false
			 },
			 loadend:{
				 type:Boolean,
				 default:false
			 }
		},
		computed:{
			status(){
				if(!this.loading && ! this.loadend)
				return 'loadmore'
				if(this.loading)
				return 'loading'
				if(this.loadend)
				return 'nomore'
			}
		},
		data() {
			return {
				iconType: 'flower',
				loadText: {
					loadmore: '轻轻上拉',
					loading: '努力加载中',
					nomore: '实在没有了'
				}
			}
		}
	}
</script>